package cn.anecansaitin.whimsy.client.registers;

import cn.anecansaitin.whimsy.Whimsy;
import cn.anecansaitin.whimsy.client.entity.model.LightBulletModel;
import cn.anecansaitin.whimsy.client.entity.model.SeismicSlamWaveModel;
import net.neoforged.api.distmarker.Dist;
import net.neoforged.bus.api.SubscribeEvent;
import net.neoforged.fml.common.Mod;
import net.neoforged.neoforge.client.event.EntityRenderersEvent;

@Mod.EventBusSubscriber(modid = Whimsy.MODID, value = Dist.CLIENT, bus = Mod.EventBusSubscriber.Bus.MOD)
public class ModEntityLayers {
    @SubscribeEvent
    public static void layers(EntityRenderersEvent.RegisterLayerDefinitions event) {
        event.registerLayerDefinition(LightBulletModel.LAYER_LOCATION, LightBulletModel::createBodyLayer);
        event.registerLayerDefinition(SeismicSlamWaveModel.LAYER_LOCATION, SeismicSlamWaveModel::createBodyLayer);
    }
}
